package practice02;

import java.util.Arrays;

/**
 * @author Administrator
 * @version V1.0
 * @ProjectName:IntelliJ IDEA
 * @PackageName: practice01
 * @ClassName: ArraySort
 * @Description: TODO(这里用一句话描述这个类的作用)
 * @date 2019/12/2 19:25
 * @Copyright 大牛版板所有
 */
public class ArraySort {
    int count;

    public int sort(int[] arrays){
        Arrays.sort(arrays);
        System.out.println(Arrays.toString(arrays));
        for (int i = 0; i < arrays.length; i++) {
            count++;
        }
        return count;
    }

    public static void main(String[] args) {
        ArraySort arr = new ArraySort();
        int[] arrs = {71,64,72,87,93,68,90,82,70};
        arr.sort(arrs);
        System.out.println("成绩的个数为："+arr.count);
    }
}
